define(['angular', 'app.directives','directives/common/laydate'], function (angular, directives) {
    'use strict';
    /**
     * 公共左侧导航指令
     */
    /*directives.directive("navigationLeft", ['$stateParams','$location','CurrentUser', function ($stateParams,$location,CurrentUser) {
        return {
            restrict: 'E',
            scope: {},
            replace: true,
            templateUrl: "/app/partial/xdd/left.html",
            link: function ($scope) {
                $scope.leftClick=function(leftType){
                    $scope.leftType=leftType;
                }
                var leftTypes=['kfry','agreement','evaluate','user','role','notice','dic','coupon','order','goods','oldGoods','translate','analysis','agent'];

                var url=$location.url();
                for(var i=0;i<leftTypes.length;i++){
                    if(url.indexOf(leftTypes[i]) >= 0){
                        $scope.leftType=leftTypes[i];
                    }
                }
                $scope.ifHasShowPerm=function(permCode){
                    var flag=false;
                    for(var i=0;i<CurrentUser.permCodeList.length;i++){
                        if(permCode==CurrentUser.permCodeList[i]){
                           return true;
                        }
                    }
                    return flag;
                }

            }
        }
    }]);*/
});